package com.kws.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.system.api.domain.SysUser;
import com.kws.system.domain.SysMessageManage;
import com.kws.system.domain.info.QueryMessageNotificationInfo;
import com.kws.system.domain.info.QueryMessageUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMessageManageMapper extends BaseMapper<SysMessageManage> {
    Page<SysMessageManage> queryMessageNotificationPage(@Param("page") Page<SysMessageManage> page, @Param("messageName") String messageName);

    List<QueryMessageUserInfo> queryMessageUser(@Param("userName") String userName,@Param("messageId") Long messageId);

    List<String> queryRoleNameList(@Param("deptId") Long deptId);

    List<QueryMessageUserInfo> queryUserNameAll(@Param("userName") String userName);

    List<SysUser> queryUserAll();

    List<SysUser> queryUserByMessageId(@Param("messageId") Long messageId);
}
